package com.chance.cc.crawler.development.command.schedule.meipai;

import com.chance.cc.crawler.development.command.job.domain.meipai.MeiPaiRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.schedule.CrawlerJobScheduleCommand;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2021/4/22 14:16
 * @Description
 *
 *      美拍视频
 **/
public class MeiPaiCrawlerJobSchedule {


    private static CrawlerJobScheduleCommand crawlerJobScheduleCommand =
            new CrawlerJobScheduleCommand("192.168.1.215",9589);


    public static void main(String[] args) {
        republishEastmoneyCrawlerJobInfo(MeiPaiRealtimeCrawlerSchedulerJob.publishCrawlerScheduleJobInfo().generateCrawlerTriggerKey());
    }

    public static void republishEastmoneyCrawlerJobInfo(String triggerKey){
        crawlerJobScheduleCommand.republishCrawlerJob(triggerKey,"crawler_dev_host");
    }

    public static void publishEastmoneyCrawlerJobInfo(String triggerKey){
        crawlerJobScheduleCommand.publishCrawlerJob(triggerKey,"crawler_dev_host");
    }
    public static void deleteEastmoneyCrawlerJob(String triggerKey){
        crawlerJobScheduleCommand.deleteCrawlerJob(triggerKey,"crawler_dev_host");
    }
}
